<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
@charset "UTF-8"; 

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak,
	.x-ng-cloak, .ng-hide {
	display: none !important;
}

ng\:form {
	display: block;
}

.ng-animate-block-transitions {
	transition: 0s all !important;
	-webkit-transition: 0s all !important;
}

.ng-hide-add-active, .ng-hide-remove {
	display: block !important;
}
</style>

<meta name="renderer" content="webkit">


<title ng-bind="SEO.title" class="ng-binding">饿了么-网上订餐_外卖_饿了么订餐官网</title>



<meta name="format-detection" content="telephone=no, email=no">

<meta name="application-name" content="饿了么网上订餐">
<meta name="msapplication-tooltip" content="饿了么网上订餐">
<meta name="msapplication-starturl" content="./">
<meta name="msapplication-tileimage"
	content="=http://static11.elemecdn.com/apple-touch-icon.png?v=2">
<meta name="msapplication-tilecolor" content="#0088ff">
<meta name="msapplication-task"
	content="name=切换地区;action-uri=http://ele.me/home;icon-uri=http://static11.elemecdn.com/apple-touch-icon.png?v=2">
<meta name="msapplication-task"
	content="name=我要订餐;action-uri=http://ele.me?from=IE;icon-uri=http://static11.elemecdn.com/apple-touch-icon.png?v=2">
<meta name="msapplication-task"
	content="name=订单中心;action-uri=http://ele.me/profile?from=IE;icon-uri=http://static11.elemecdn.com/apple-touch-icon.png?v=2">
<meta name="msapplication-task"
	content="name=寻求帮助（HELP）;action-uri=http://ele.me/support?from=IE;icon-uri=http://static11.elemecdn.com/apple-touch-icon.png?v=2">
<meta property="qc:admins" content="2263606250655">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="apple-touch-icon-precomposed"
	href="https://static2.ele.me/apple-touch-icon.png?v=2">

<link rel="shortcut icon"
	href="https://static2.ele.me/eleme/desktop/media/img/favicon-16x16.png"
	type="image/png">
<link rel="icon"
	href="https://static2.ele.me/eleme/desktop/media/img/favicon-16x16.png"
	type="image/png" sizes="16x16">
<link rel="icon"
	href="https://static2.ele.me/eleme/desktop/media/img/favicon-32x32.png"
	type="image/png" sizes="32x32">
<link rel="icon"
	href="https://static2.ele.me/eleme/desktop/media/img/favicon.png"
	type="image/png" sizes="96x96">

<link href="<%=basePath%>res/yw/css/vendor.606e96.css"
	rel="stylesheet">

<link href="<%=basePath%>res/yw/css/main.153014.css"
	rel="stylesheet">
<link rel="stylesheet" href="<%=basePath %>res/lsj/js/layui/css/layui.css" media="all">

<script src="<%=basePath%>res/yw/js/api" data-ref="API_CONFIG"></script>
<script src="<%=basePath%>res/yw/js/perf.js"
	type="text/javascript" crossorigin="anonymous"></script>
<base href=".">
<meta name="mobile-agent" content="undefined">
<meta name="description"
	content="”饿了么”2008年创立于上海，是中国领先的本地生活平台。截至目前，饿了么在线外卖交易平台已覆盖全国2000个城市，加盟餐厅130万家，用户量达2.6亿">
<meta name="keywords" content="饿了么，网上订餐，外卖，快餐外卖，外卖网">
</head>
<body cute-title=""
	ng-class="{hidesidebar: layoutState &amp;&amp; layoutState.hideSidebar, smallbody: layoutState.smallBody, whitebody: layoutState.whiteBody}"
	class="hidesidebar" style="position: relative;">
	<input type="hidden" id="fodUser" value="${fodUser }">
	<div ng-switch="state.type" state="layoutState"
		class="ng-isolate-scope">
		<header class="carttopbar" ng-switch-when="checkout"
			topbar-checkout="" state="state">
			<div class="carttopbar-nav container clearfix">
				<span class="carttopbar-nav-path">当前位置：<a
					ng-href="/place/wt0259bnpfzx"
					ng-bind="$root.place.name || $root.place.address"
					class="ng-binding" href="https://www.ele.me/place/wt0259bnpfzx">一度教育湖南交通职业技术学院(香樟路校区)</a>
					<i class="icon-arrow-right"></i> <a class="inherit ng-binding"
					ng-href="/shop/156899418" ng-bind="state.rstName"
					ng-show="state.rstName" href="https://www.ele.me/shop/156899418">岳阳烧烤</a>
					<i class="icon-arrow-right" ng-show="state.rstName"></i> 订单信息
				</span>

				<div topbar-profilebox="">
					<div class="topbar-profilebox">
						<span class="topbar-profilebox-avatar icon-profile ng-hide" ng-show="!$root.user.username"></span>  <span ng-show="!$root.user.username" id="registLogin"><a ng-href="//h5.ele.me/login/#redirect=https%3A%2F%2Fwww.ele.me%2F" target="_blank" href="<%=basePath %>pages/yyf/login.jsp">登录/注册</a></span> 
						<span class="topbar-profilebox-wrapper" ng-show="$root.user.username" id="userName">
							<span class="topbar-profilebox-username ng-binding">${fodUser }</span>
							<span class="topbar-profilebox-btn icon-arrow-down ng-scope" ng-if="$root.topbarType !== &#39;checkout&#39;"></span>
							<div class="dropbox topbar-profilebox-dropbox">
								<a class="icon-profile" href="<%=basePath %>pages/tl/center.jsp" hardjump="">个人中心</a>
								<a class="icon-star" href="https://www.ele.me/profile/favor" hardjump="">我的收藏</a>
								<a class="icon-location" href="https://www.ele.me/profile/address" hardjump="">我的地址</a>
								<a class="icon-setting" href="https://www.ele.me/profile/security" hardjump="">安全设置</a>
								<a class="icon-logout" href="<%=basePath %>pages/hjt/wykd.jsp">我要开店</a>
								<a class="icon-logout" href="<%=basePath %>loginandregist/exitLogin" ng-click="logout()">退出登录</a>
							</div>
						</span>
					</div>
				</div>
			</div>
		</header>
	</div>
	<div class="importantnotification container" role="banner">
	
	</div>
	<div class="sidebar ng-hide" role="complementary" ng-hide="layoutState &amp;&amp; layoutState.hideSidebar">
		<div class="sidebar-tabs">
			<div class="toolbar-tabs-middle">
				<a class="toolbar-btn icon-order toolbar-close" href="https://www.ele.me/profile/order" hardjump="" tooltip="我的订单" tooltip-placement="left" ubt-click="toolbar_order"></a>
				<div class="toolbar-separator"></div>
				<a class="toolbar-cartbtn icon-cart toolbar-open toolbar-cartbtn-shownum" href="JavaScript:" template="cart" ng-class="{&#39;focus&#39;: (activeTemplate === &#39;cart&#39; &amp;&amp; isSidebarOpen), &#39;toolbar-cartbtn-shownum&#39;: foodCount.count}" ubt-click="390">购物车
					<i class="toolbar-cartnum ng-binding ng-scope" ng-if="foodCount.count" ng-bind="foodCount.count">1</i>
				</a>
				<div class="toolbar-separator"></div>
				<a class="toolbar-btn icon-notice toolbar-open modal-hide" href="JavaScript:" template="message" ng-class="{&#39;focus&#39;: (activeTemplate === &#39;message&#39; &amp;&amp; isSidebarOpen), &#39;toolbar-open&#39;: user, &#39;modal-hide&#39;: user}" tooltip="我的信息" tooltip-placement="left" ubt-click="392"></a>
			</div>
			<div class="toolbar-tabs-bottom">
				<div class="toolbar-btn icon-QR-code">
					<div class="dropbox toolbar-tabs-dropbox">
						<a href="http://static11.elemecdn.com/eleme/desktop/mobile/index.html" target="_blank">
							<img src="<%=basePath%>res/yw/images/appqc.95e532.png" alt="下载手机应用">
							<p>下载手机应用</p>
							<p class="icon-QR-code-bonus">即可参加分享红包活动</p>
						</a>
					</div>
				</div>
				<a class="toolbar-btn sidebar-btn-backtop icon-top" tooltip="回到顶部" title="回到顶部" href="JavaScript:" tooltip-placement="left" style="visibility: hidden;"></a>
			</div>
		</div>
		<div class="sidebar-content">
		
		</div>
	</div>
	<div ng-view="" role="main" class="ng-scope">
		<div class="checkoutguide ng-isolate-scope" checkout-guide="" guide="guide">
			<div class="container">
				<a class="checkoutguide-logo icon-logo" href="https://www.ele.me/"></a>
				<span class="checkoutguide-text ng-binding" ng-bind="guide.text">订单信息</span>
				<div class="checkoutguide-content step2" ng-if="guide.step">
					<span class="checkoutguide-item active" ng-class="{active: guide.step &gt;= 1}">选择商品</span>
					<span class="checkoutguide-item active" ng-class="{active: guide.step &gt;= 2}">确认订单信息</span>
					<span class="checkoutguide-item" ng-class="{active: guide.step &gt;=3}">成功提交订单</span>
					<p class="checkoutguide-line">
						<span class="line line1"></span>
						<span class="line line2"></span>
						<span class="line line3"></span>
						<span class="line line4"></span>
					</p>
				</div>
			</div>
		</div>
		<div class="container clearfix ng-scope">
			<div ng-if="!loading &amp;&amp; !nofood" class="checkout-cart ng-scope ng-isolate-scope" checkout-cart="cart">
				<div class="checkoutcart-container" id="shopbasket">
					<div class="checkoutcart-title">
						<h2>订单详情</h2>
						<a ng-href="/shop/156899418" href="https://www.ele.me/shop/156899418">&lt; 返回商家修改</a>
					</div>
					<div class="checkoutcart-tablerow tablehead">
						<div class="cell itemname">商品</div>
						<div class="cell itemquantity">份数</div>
						<div class="cell itemtotal">单价</div>
						<div class="cell itemtotal">小计（元）</div>
					</div>
					<div id="tops">
									
                    </div>
					<ul ng-if="cart.vm.extra || cart.vm.records" class="ng-scope">
						<li ng-repeat="item in cart.vm.extra" class="checkoutcart-tablerow extra ng-scope">
							<div class="cell itemname">
								<span ng-bind="item.name" title="" class="ng-binding"></span>
							</div>
						</li>
						<li ng-repeat="item in cart.vm.extra" class="checkoutcart-tablerow extra ng-scope">
							<div class="cell itemname">
								<span ng-bind="item.name" title="配送费" class="ng-binding">配送费</span>
							</div>
							<div class="cell itemquantity"></div>
							<div class="cell itemtotal ng-binding">¥5.00</div>
						</li>
					</ul>
					<div class="checkoutcart-total color-stress" id="ddzje">
						
					</div>
					<div class="checkoutcart-totalextra">
						共 <span ng-bind="cart.pieces" class="ng-binding" id="sl"></span> 份商品
					</div>
				</div>
			</div>
			<div ng-if="!loading &amp;&amp; !nofood" class="checkout-content ng-scope">
				<div class="checkout-select ng-isolate-scope" checkout-address="" checkout-data="checkoutData" address-list="addressList" address="address" isbaisheng="isBaishengRst">
					<h2>
						收货地址 <a ng-show="addressList.length" class="checkout-addaddress" href="javascript:" ng-click="addAddress()" id="addAddress">添加新地址</a>
					</h2>
					<ul ng-hide="!addressList.length" class="checkout-address-list showfirst" ng-class="{ showmore: showMoreAddress, showfirst: noInitAddress }" id="address">
						<input type="hidden" id="dz">
					</ul>
				</div>
				
				<div>
					<button quicksubmit-trigger="" submit-visable="checkout.submitVisable" class="btn-stress btn-lg ng-binding ng-isolate-scope" ng-disabled="orderButton.disabled" ng-bind="orderButton.text" id="zengjia">确认下单</button>
					<div class="checkout-dapp">
						<p class="checkout-dapp-tip">
							扫码下载APP<br>APP下单立享优惠
						</p>
						<i class="icon-qrcode checkout-dapp-qrcode"></i>
						<i class="icon-uniE029 checkout-dapp-arrow"></i>
						<img src="./饿了么-网上订餐_外卖_饿了么订餐官网_files/appqc.95e532.png" alt="扫一扫下载饿了么手机 App">
					</div>
				</div>
			</div>
		</div>
		<div class="checkout-quicksubmit ng-scope" ng-hide="checkout.submitVisable || nofood">
			<div class="container">
			</div>
		</div>
	</div>
	<footer class="footer" role="contentinfo">
		<div class="container clearfix">
			<div class="footer-link">
				<h3 class="footer-link-title">用户帮助</h3>
				<a class="footer-link-item" href="https://help.ele.me/pc/" target="_blank">我的客服</a>
			</div>
			<div class="footer-link">
				<h3 class="footer-link-title">商务合作</h3>
				<a class="footer-link-item" href="https://kaidian.ele.me/" target="_blank">我要开店</a>
				<a class="footer-link-item" href="https://www.ele.me/support/about/jiameng" target="_blank">加盟指南</a>
				<a class="footer-link-item" href="https://www.ele.me/support/about/contact" target="_blank">市场合作</a>
				<a class="footer-link-item" href="http://openapi.eleme.io/" target="_blank">开放平台</a>
			</div>
			<div class="footer-link">
				<h3 class="footer-link-title">关于我们</h3>
				<a class="footer-link-item" href="https://www.ele.me/support/about" target="_blank">饿了么介绍</a>
				<a class="footer-link-item" href="http://jobs.ele.me/" target="_blank">加入我们</a>
				<a class="footer-link-item" href="https://www.ele.me/support/about/contact" target="_blank">联系我们</a>
				<a class="footer-link-item" ng-href="//h5.ele.me/service/agreement/#HEAEDER_SHOW=1" target="_blank" href="https://h5.ele.me/service/agreement/#HEAEDER_SHOW=1">规则中心</a>
			</div>
			<div class="footer-contect">
				<div class="footer-contect-item">
					24小时客服热线 : <a class="inherit" href="tel:10105757">10105757</a>
				</div>
				<div class="footer-contect-item">
					关注我们 :
					<div href="JavaScript:" class="icon-wechat" ubt-click="402">
						<div class="dropbox dropbox-bottom footer-contect-dropbox" ubt-visit="402">
							<img src="./饿了么-网上订餐_外卖_饿了么订餐官网_files/wexinqc100@2x.393ade.png" alt="微信号: elemeorder">
							<p>微信号: elemeorder</p>
							<p>饿了么网上订餐</p>
						</div>
					</div>
					<a href="http://e.weibo.com/elemeorder" class="icon-weibo" target="_blank"></a>
				</div>
			</div>
			<div class="footer-mobile">
				<a href="https://h.ele.me/landing" target="_blank">
					<img src="./饿了么-网上订餐_外卖_饿了么订餐官网_files/appqc.95e532.png" class="footer-mobile-icon" alt="扫一扫下载饿了么手机 App">
				</a>
				<div class="footer-mobile-content">
					<h3>下载手机版</h3>
					<p>扫一扫,手机订餐方便</p>
				</div>
			</div>
			<div class="footer-copyright serif">
				<h5 class="owner">所有方：上海拉扎斯信息科技有限公司</h5>
				<p>
					增值电信业务许可证 : <a href="http://www.shca.gov.cn/" target="_blank">沪B2-20150033</a>
					| <a href="http://www.miibeian.gov.cn/" target="_blank">沪ICP备
						09007032</a> | <a href="http://www.sgs.gov.cn/lz/licenseLink.do?method=licenceView&amp;entyId=20120305173227823" target="_blank">上海工商行政管理</a>
						 Copyright ©2008-2018 ele.me, All Rights Reserved.互联网药品信息服务资格证书 编号：（沪）-经营性-2016-0011
				</p>
			</div>
			<div class="footer-police container">
				<a href="http://www.zx110.org/picp/?sn=310100103568" rel="nofollow" target="_blank">
					<img alt="已通过沪公网备案，备案号 310100103568" src="<%=basePath%>res/yw/images/picp_bg.e373b3.jpg" height="30">
				</a>
			</div>
		</div>
	</footer>
	<script src="<%=basePath%>res/wzw/food/home"></script>
    <script type="text/javascript" src="res/wzw/js/jquery.min.1.6.4.js"></script>
	<script src="<%=basePath%>js/jquery-1.10.2.js"></script>
	<script src="<%=basePath %>res/lsj/js/layui/layui.js"></script>
	<script type="text/javascript">
	$(function(){
		var fodUser = $("#fodUser").val();
	    if(fodUser != ""){
	    	$("#registLogin").hide();
	    }else {
	    	$("#userName").hide();
	    }
	})
		window.onload=function(){
			//进入商品页直接刷新
			/* $('.shop-cartbutton').on('click', addProduct); */
			//进入页面时直接进入根据店家id显示该用户在该点所加入到购物车的商品
			findAlls();
			setTotal();
			findsl();
			showAdress();
		}
		
		//进入商品页面显示购物车根据店家id显示该用户在该点所加入到购物车的商品
		function findAlls(){
			var a=sessionStorage['sId'];
			var url = "<%=basePath%>fodCart/findAll.action?merchantId="+a+"";
			$.post(url, null, function(mes) {
				$("#tops").html("");
				var o=document.getElementById('shopbasket').offsetTop+document.body.scrollTop;//获得元素
				for(var i =0 ;i<mes.length;i++){
					o=o-44;
					$("#shopbasket").css("top",o+"px");
					$("#tops").append("<div ng-repeat='item in shopCart.vm.groups[shopCart.currentGroupIndex]' class='shop-cartbasket-tablerow ng-scope' entityid='685429830'>"
							+"<div class='cell itemname ng-binding' ng-bind='item.name'>"+mes[i].foodName+"</div>"
							+"<div class='cal'><div style='position:relative;right:60px;top:13px;' class='cell itemquantity'>"
							+"<button class='min'>-</button>"
							+"<input type='text' class='shuzi' value="+mes[i].cartNum+">"
							+"<input type='hidden' class='idd' value="+mes[i].cartId+">"
							+"<button class='add'>+</button><span style='position:relative;left:30px;'>"+mes[i].cartPrice+"</span>"
							+"<span style='position:relative;left:60px;'><span>¥</span><span class='price'>"+mes[i].cartPrice*mes[i].cartNum+"</span></span>"
							+"</div></div>"
							+"</div>");
				}
		    }, "json");
			suanfa();
		}
		function suanfa(){
			/* 如果在和后台做数据交互时，出现点击加减按钮的值无法传到后台的情况，可以用下面这种方式*/
			//按钮减
			$("body").on("click", ".min", function(m) {
				var obj = $(this).parent().find(".shuzi");
				var jiage=$(this).parent().find(".idd");
				if(obj.val() <= 1) {
				     shanchu();
				} else {
				     obj.val(parseInt(obj.val()) - 1);
				   	 //根据加减修改数据库购买的数量
				     var url = "<%=basePath%>fodCart/updates.action";
					 var onn = obj.val();
					 var jg=jiage.val();
				 	 var data={"cartNum":onn,"cartId":jg};
					 $.post(url,data,function(mes){
						findAlls();
						top.location.reload();
					 },"JSON");
				}
				obj.change();
			 });
			//按钮加
			$("body").on("click", ".add", function(m) {
				var obj =$(this).parent().find(".shuzi");
				var jiage=$(this).parent().find(".idd");
				if(obj.val()>=500){
				    alert("亲!已经是食品一天最高的销售量啦!!!!");
				}else {
					obj.val(parseInt(obj.val()) + 1);
					//根据加减修改数据库购买的数量
					var url = "<%=basePath%>fodCart/updates.action";
					var onn = obj.val();
					var jg=jiage.val();
				 	var data={"cartNum":onn,"cartId":jg};
					$.post(url,data,function(mes){
						findAlls();
						top.location.reload();
					},"JSON");
				}
				obj.change();
			});
		}
		//根据id删除购物车里的商品
		function shanchu() {
			$(".min").click(function(){
				var url = "<%=basePath%>fodCart/deletes.action";
				var obj = $(this).parent().find(".idd").val();
			 	var data={"cartId":obj};
				$.post(url,data,function(mes){
					top.location.reload();
				});
			})
		}
		//购物车金额计算
		function setTotal(){
			var a=sessionStorage['sId'];
			var url = "<%=basePath%>fodCart/findAlljg.action";
			var data={merchantId:a};
			$.post(url, data, function(mes) {
				if(mes<30){
					$(".btn-stress").html("<a href='<%=basePath %>pages/wzw/food/food.jsp'><span>确认下单</span></a>");
				}else{
					$("#zje").html("<span>"+mes+".00</span>");
					$("#ddzje").html("<span>¥"+(mes+5)+".00</span>");
					$("#dindans").html("<span>"+(mes+5)+"</span>");
					$(".btn-stress").html("<span>确认下单</span>");
				}
		    }, "json");
			zenjia();findsl
		}
		function findsl(){
			var a=sessionStorage['sId'];
			var url = "<%=basePath%>fodCart/findAllsl.action";
			var data={merchantId:a};
			$.post(url, data, function(mes) {
					$("#sl").html("<span>"+mes+"</span>");
		    }, "json");
		}
		//将购物车里的数据加入到订单表中
		function zenjia() {
			$("#zengjia").click(function(){
				var a=sessionStorage['sId'];
				var zjiage=$("#dindans").text();
				var sl=$("#sl").text();
				var dz = $("#dz").val();
				var url = "<%=basePath%>fodIndent/adds.action";
			 	var data={"merchantId":a,"indentNum":sl,"indentPrice":zjiage,"dz":dz};
				$.post(url,data,function(mes){
					if(mes.msg=="ok"){
						location.href="<%=basePath%>pages/tl/center.jsp";
					}
				},"JSON");
			})
		}
		/*查询该用户的收货地址*/
		function showAdress(){
			var url = "<%=basePath%>shArea/findByuserId";
			var data = null;
			$.post(url,data,function(mes){
				
				for(var i=0;i<mes.length;i++){
					$("#address").append("<li class='checkout-address ng-scope' id="+mes[i].addressId+" onclick='checked(this);' addressContent="+mes[i].addressContent+" addressDetails="+mes[i].addressDetails+">"
										+"<i class='checkout-address-icon icon-location-line'></i>"
										+"<div class='checkout-address-info'>"
										+"<p ng-bind='item.name + [&#39; &#39;,&#39; 先生 &#39;, &#39; 女士 &#39;][item.sex] + item.phone' class='ng-binding'>"+mes[i].userName+" （先生或女士） 18216078493</p>"
										+"<p class='color-weak ng-binding' ng-bind='item.address + item.address_detail'>"+mes[i].addressContent+" "+mes[i].addressDetails+"</p>"
										+"</div>"
										+"<div class='checkout-address-edit'>"
										+"<a href='javascript:updateAddress(\""+mes[i].addressId+"\");' ng-click='editAddress($event, item)' class='caozuo'>修改</a>"
										+"	 "
										+"<a href='javascript:deleteAddress(\""+mes[i].addressId+"\");' ng-click='removeAddress($event, item)' class='caozuo'>×</a>"
										+"</div>"
										+"</li>"
				)}
				$("#address").append("<a class='checout-showmoreaddress' href='javascript:' ng-click='showMoreAddress = true' ng-show='!showMoreAddress &amp;&amp; addressList.length &gt; 1'>显示更多地址"
									+"<i class='icon-arrow-down'></i>"
									+"</a>"
									+"<a class='checout-showmoreaddress ng-hide' href='javascript:' ng-click='showMoreAddress = false' ng-show='showMoreAddress &amp;&amp; addressList.length &gt; 1'>收起"
									+"<i class='icon-arrow-up'></i>"
									+"</a>")
			});
		}
		function updateAddress(obj){
			layui.use(['layer'], function(){
				layer = layui.layer; //弹层
				var url = "<%=basePath %>shArea/showUpdate";
				var data = {"addressId":obj};
				$.post(url,data,function(mes){
					layer.open({
						  type: 2,
						  area : ['60%' , '90%'],//弹出框大小
						  shift:1,//弹出框动画效果
						  content: ['<%=basePath%>pages/lsj/user/showOne.jsp','on'], //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
					 	  success:function(layero,index){
					 		  var body = layer.getChildFrame('body',index);//确定两个页面之间的父子关系
					 		  var iframeWin = window[layero.find('iframe')[0]['name']];//子页面对象
					 		  console.log(body.html()) //得到iframe页的body内容
					 		  body.find("#addressId").val(mes.addressId);
					 		  body.find(".merchantSite").val(mes.addressContent);
					 		  body.find("#addressDetails").val(mes.addressDetails);
					 	  },
					 	 end: function () {
				                location.reload();
				            }
						});
				});
			});
		}
		function deleteAddress(obj){
			var url = "<%=basePath %>shArea/deletes";
			var data = {"addressId":obj};
			$.post(url,data,function(mes){
				if(mes == 'ok'){
					$("#"+obj).remove();
				}
			});
		}
		layui.use(['layer'], function(){
			 
			  layer = layui.layer; //弹层
			 
			$('#addAddress').on('click', function(){
				 layer.open({
					  type: 	2,
					  area : ['80%' , '85%'],//弹出框大小
					  shift:1,//弹出框动画效果
					  content: ['<%=basePath%>pages/lsj/user/showAdd.jsp','on'],//这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
					  end: function () {
			                location.reload();
			            }	
				 }); 
			   }); 
			  
		});
		function checked(obj){
			$(".checkout-address").css("background","");
			$(obj).css("background","#eeeeee");
			var dznr = $(obj).attr("addressContent");
			var dzxq = $(obj).attr("addressDetails");
			$("#dz").val(dznr+" "+dzxq);
		}
	</script>
</body>
</html>